OneTeamSoftware\WooCommerce\Shipping\Adapter\Shippo D

Total Complexity 164
Dependencies 1
Dependents 0
Total lines 1,278
Lines of code 1,028
Logical lines of code 359
Comment lines 2
Methods 43
Properties 5

Methods 43

Method Rating Maintainability Complexity Lines of code
getShipmentResponse()
B
37 22 72
initServices()
B
19
1 298
prepareAddress()
A
43 15 51
getRatesParams()
A
44 13 40
prepareParcelInfo()
A
46 13 36
setShipmentCacheValues()
A
45 10 42
prepareCustomsInfo()
A
49 9 29
getErrorMessage()
A
53 8 24
getResponse()
A
53 8 20
prepareCustomsItem()
S
49 7 30
initPackageTypes()
S
37 1 76
getRates()
S
56 4 17
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getValidationErrors()
S
59 4 13
initCarriers()
S
42 1 54
__construct()
S
49 1 34
getIntegrationFormFields()
S
50 1 34
getCacheKey()
S
66 3 9
getShipmentId()
S
63 3 10
getRequestParams()
S
65 3 8
validateActiveApiToken()
S
63 3 9
addHeadersAndParams()
S
77 2 3
getCachedCustomsInfo()
S
63 2 10
getCachedAddress()
S
63 2 10
getCachedParcelInfo()
S
63 2 10
getRatesResponse()
S
66 2 8
getName()
S
82 1 3
hasUseSellerAddressFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getServices()
S
82 1 3
getRouteUrl()
S
72 1 5
getRequestBody()
S
75 1 4
hasAddressValidationFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3
hasSignatureFeature()
S
82 1 3
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasCreateManifestsFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3